package com.hexinfo.dmpro.script.pack.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@AllArgsConstructor
public enum FilePackEnum {

    SCANNING("SCANNING", "扫描中"),

    FINISH("FINISH", "完成"),

    FAIL("FAIL", "失败"),

    ZIP_SUFFIX(".zip", "压缩文件后缀");


    @Getter
    private final String value;

    @Getter
    private final String desc;

    public static List<String> getValues() {
        return Arrays.stream(FilePackEnum.values()).map(FilePackEnum::getValue).collect(Collectors.toList());
    }
}
